<?php
/* @var $this GamesLogroController */
/* @var $model GamesLogro */
/* @var $form CActiveForm */
$this->pageTitle = "Gamification";

$form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array(
    'id'=>'games-logro-form',
    'type' => 'horizontal',
    'enableAjaxValidation' => false,
    'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => false,),
    'enableClientValidation' => true,
    'htmlOptions' => array('enctype' => 'multipart/form-data'),
));
?>

<?php echo $form->textFieldRow($model, 'mensaje', array('maxlength' => 64, 'class' => 'span6')) ?>
<?php echo $form->textAreaRow($model, 'descripcion', array('class' => 'span6')) ?>
<?php echo $form->textFieldRow($model, 'slug', array('maxlength' => 64, 'class' => 'span4')) ?>
<?php echo $form->textFieldRow($model, 'monedas', array('class' => 'span2')) ?>
<?php echo $form->fileFieldRow($model, 'imagen', array('class' => 'span6')) ?>

<div class="form-actions">
    <div class="form-actions-float">
    <?php $this->widget('bootstrap.widgets.TbButton', array(
        'buttonType' => 'submit',
        'type' => 'success',
        'icon' => 'ok',
        'label' => $model->isNewRecord ? Yii::t('AweCrud.app', 'Create') : Yii::t('AweCrud.app', 'Save'),
    )); ?>
    <?php $this->widget('bootstrap.widgets.TbButton', array(
        'icon'=>'remove',
        'label' => Yii::t('AweCrud.app', 'Cancel'),
        'htmlOptions' => array('onclick' => 'javascript:history.go(-1)')
    )); ?>
    </div>
</div>

<?php $this->endWidget(); ?>